/*
 *    Copyright © OpenAtom Foundation.
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

package com.inspur.edp.bff.api.extend;

import com.inspur.edp.cef.api.RefObject;
import com.inspur.edp.cef.api.rootManager.IRootManagerContext;
import com.inspur.edp.cef.entity.changeset.ModifyChangeDetail;
import com.inspur.edp.cef.entity.entity.IEntityData;
import com.inspur.edp.cef.spi.entity.resourceInfo.ModelResInfo;
import com.inspur.edp.commonmodel.spi.extend.ICMManagerExtend;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public interface IBffManagerExtend extends ICMManagerExtend {

    @Override
    IBffEntityExtend getDataTypeExtend();

    List<IVMHelpExtendInfo> getHelpExtends();

    void mapDataFromVo(IEntityData voData, IEntityData beData);

    void mapData2Vo(IEntityData voData, IEntityData beData);

    void mapChangeFromVo(ModifyChangeDetail voData, ModifyChangeDetail beData);

    void mapChange2Vo(ModifyChangeDetail voData, ModifyChangeDetail beData);


    boolean invokeAction(String code, RefObject<Object> result, IRootManagerContext context, LinkedHashMap<String, Object> outterParams);

    ModelResInfo getModelInfo();

    void mapDefaultValuesFromVo(Map<String, Object> voDefaultValues, Map<String, Object> beDefaultValues);

    void mapFilterFromVo(Map<String, String> filterDic);
}
